package com.fanix5.javamvvm.network;

import android.text.TextUtils;

import org.jetbrains.annotations.NotNull;

import java.util.List;

import okhttp3.MediaType;
import okhttp3.Request;

public class DefaultFormatPrinter implements FormatPrinter  {

    private static final String TAG = "SeekDoc";
    private static final String LINE_SEPARATOR = System.getProperty("line.separator");
    private static final String DOUBLE_SEPARATOR = LINE_SEPARATOR + LINE_SEPARATOR;
    private static final String[] OMITTED_RESPONSE = new String[]{LINE_SEPARATOR, "Omitted response body"};
    private static final String[] OMITTED_REQUEST = new String[]{  LINE_SEPARATOR, "Omitted request body"};
    private static final String N = "\n";
    private static final String T = "\t";
    private static final String REQUEST_UP_LINE = "   ┌────── Response ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────";
    private static final String END_LINE = "   └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────";
    private static final String RESPONSE_UP_LINE = "   ┌────── Response ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────";
    private static final String BODY_TAG = "Body:";
    private static final String URL_TAG = "URL: ";
    private static final String METHOD_TAG = "Method: @";
    private static final String HEADERS_TAG = "Headers:";
    private static final String STATUS_CODE_TAG = "Status Code: ";
    private static final String RECEIVED_TAG = "Received in: ";
    private static final String CORNER_UP = "┌ ";
    private static final String CORNER_BOTTOM = "└ ";
    private static final String CENTER_LINE = "├ ";
    private static final String DEFAULT_LINE = "│ ";
    private static final String[] ARMS = new String[]{"-A-", "-R-", "-M-", "-S-"};
    private static final ThreadLocal last = new ThreadLocal();


//    private boolean isEmpty(String line){
//        return TextUtils.isEmpty(line) || N == line || T == line || TextUtils.isEmpty(
//                line.trim { it <= ' ' }
//            )
//    }


    @Override
    public void printJsonRequest(Request request, String bodyString) {

    }

    @Override
    public void printFileRequest(Request request) {

    }

    @Override
    public void printJsonResponse(long chainMs, boolean isSuccessful, int code, String headers, MediaType contentType, String bodyString, List<String> segments, String message, String responseUrl) {

    }

    @Override
    public void printFileResponse(long chainMs, boolean isSuccessful, int code, String headers, List<String> segments, String message, String responseUrl) {

    }
}
